package com.wxj.bank.module.enums;

import com.wxj.bank.module.constant.Constants;

/**
 * 系统异常
 */
public enum ExceptionEnum {

    /* 公用 */
    SUCCESS("200","success"),
    FAILED("500","failed"),
    EROOR(Constants.PROJECT_TAG+"0000","interface error!"),

    PARAM_VALID(Constants.PROJECT_TAG+"0001","paramiters valid!"),
    NOT_EXISTS_USER_ORDER(Constants.PROJECT_TAG+"0002","this user  order is not exists!"),

    ;

    private final String code;

    private final String msg;

    ExceptionEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
